//
//  main.cpp
//  doubleLinkedList
//
//  Created by mxc on 15/12/25.
//  Copyright © 2015年 x_mitsui. All rights reserved.
//

#include <iostream>

#define ERROR 0
#define OK 1


class DNode {
    
public:
    DNode* pPre;
    DNode* pNext;
    char data;
};

static DNode* InitList(){
    DNode*p,*q;
    auto L = new DNode();//类头结点
    if (L==nullptr) {
        return ERROR;
    }
    L->pNext=L->pPre=nullptr;
    p=L;
    for (int i=0; i<26; i++) {
        q=new DNode();
        q->data = 'A'+i;
        q->pPre = p;
        q->pNext = p->pNext;
        p->pNext = q;
        
        p = q;
    }
    p->pNext=L->pNext;
    L->pNext->pPre=p;
    return nullptr;
}

int main(int argc, const char * argv[]) {
    
    std::string s = "Stand back! I've got jimmies!";
    std::hash<std::string> hash_fn;
    
    size_t hash = hash_fn(s);
    
    std::cout << hash << '\n';
    std::cout << "Hello, World!\n";
    return 0;
}
